<h2><?php echo $this->message; ?></h2>
<?php if(count($this->users)): ?>
	<table>
	<tr>
		<th>Name</th>
		<th>Email</th>
		<th>Points</th>
		<th>Action</th>
		<th>Points</th>
		<th>CRUD</th>
	</tr>
	<?php foreach($this->users as $user):?>
		<tr>
			<td><?php echo $user->name; ?></td>
			<td><?php echo $user->email; ?></td>
			<td><?php echo $user->points; ?></td>
			<td><?php echo $user->date_action; ?></td>
			<td><?php echo $user->status; ?></td>
			<td>
			<a href="<?php echo $this->url(array('action' => 'edit', 'id' => $user->id), 'auser', true); ?>">Edit</a>
			&nbsp;
			<a href="<?php echo $this->url(array('action' => 'delete', 'id' => $user->id), 'auser', true); ?>">X</a>		
			</td>
		</tr>
	<?php endforeach;?>
	</table>
<?php else: ?>
	<h1>There are no users</h1>
<?php endif; ?>